import  pandas as pd
# 解决数据输出时列名不对齐问题
pd.set_option('display.unicode.east_asian_width',True)
data = [
    [12,34,45],
    [56,78,99],
    [43,76,73]
]
index = [0,1,2]
columns = ['python','C','JAVA']
# pd.DataFrame(data,index,columns)
df = pd.DataFrame(data=data,index=index,columns=columns)
# print(df)

# 遍历
for col in df.columns :
    series = df[col]
    # print(series)

# pd数据类型        py数据类型
#1 object            str
#2 int64             int
#3 float64           float
#4 bool              bool

df = pd.DataFrame({
    'py':[123,345,678],
    'c++':[65,498,37],
    'java':[45,67,766],
},index=[55,66,77])

print(df)